﻿
using Microsoft.VisualBasic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace EntityModel
{
    /// <summary>
    /// 登录信息
    /// </summary>
    public class EGS_LoginInfo
    {
        public EGS_LoginInfo()
        {
            this.ID = Guid.NewGuid();
        }
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid ID { get; set; }
        /// <summary>
        /// 登陆姓名·
        /// </summary>
        [StringLength(50)]
        [Required]
        public string? Name { get; set; }
        /// <summary>
        /// 登录时间
        /// </summary>
        public DateTime LoginTime { get; set; }
        /// <summary>
        /// 所属地
        /// </summary>

        public string? IP { get; set; }

        public EGS_LoginInfo? Account { get; set; }
        public DateTime DelTime { get; set; }
    }
}
